package com.dhl.stategy.improve;

import com.dhl.stategy.improve.flybehavior.GoodFlyBehavior;
import com.dhl.stategy.improve.quackbehavior.GaGaQuackBehavior;

/**
 * @title: BJDuck
 * @Author danghailiang
 * @Date: 2022/8/24 1:23
 * @Version 1.0
 */
public class BJDuck extends Duck{

    public BJDuck(){
        super.setQuackBehavior(new GaGaQuackBehavior());
        super.setFlyBehavior(new GoodFlyBehavior());
    }

    @Override
    public void display() {
        System.out.println("北京鸭子");
    }
}
